<template>
  <el-container class="container">
    <el-header>管理员系统</el-header>
    <el-container class="article">
      <el-aside width="200px">
        <el-menu :default-openeds="['1', '3']" width="200px">
          <!-- 对商家的管理 -->
          <el-submenu index="1">
            <template slot="title"><i class="el-icon-setting"></i>商家管理</template>
            <el-menu-item-group>
              <el-menu-item index="1-1">
                <router-link to="/AdminSystem1/MerchantList" tag="div">商家列表</router-link>
              </el-menu-item>
            </el-menu-item-group>
          </el-submenu>
          <!-- 对门店的管理 -->
          <el-submenu index="2">
            <template slot="title"><i class="el-icon-s-shop"></i>门店管理</template>
            <el-menu-item-group>
              <el-menu-item index="2-1">   
                <router-link to="/AdminSystem1/ShopList" tag="div">门店列表</router-link>
              </el-menu-item>
              <el-menu-item index="2-2">
                <router-link to="/AdminSystem1/ShopCheck" tag="div">门店审核</router-link>
              </el-menu-item>
            </el-menu-item-group>
          </el-submenu>
          <!-- 对管理员的管理 -->
          <el-submenu index="3">
            <template slot="title"><i class="el-icon-s-management"></i>管理员管理</template>
            <el-menu-item-group>
              <el-menu-item index="3-1">
                <router-link to="/AdminSystem1/AdminList" tag="div">管理员列表</router-link>
              </el-menu-item>
            </el-menu-item-group>
          </el-submenu>
        </el-menu>
      </el-aside>
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
    <el-footer>Footer</el-footer>
  </el-container>
</template>

<script>
import AdminList from "./AdminList.vue"
import AdminUpdate from "./AdminUpdate.vue"
import MerchantList from "./MerchantList.vue"
import ShopList from "./ShopList.vue"
import ShopCheck from "./ShopCheck.vue"
export default {
  components: {
    AdminList,
    AdminUpdate,
    MerchantList,
    ShopList,
    ShopCheck
  },
};
</script>

<style>
* {
  margin: 0;
  padding: 0;
}

.container {
  width: 100%;
  margin: 0 auto;
  height: 100vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  border: 1px solid #95a5a6;
}

.article {
  flex-grow: 1;
  display: content-box;
}

.el-header {
  background-color: #b3c0d1;
  color: #333;
  text-align: left;
  font-size: 30px;
  font-weight: 700;
  height: 100px !important;
  line-height: 100px;
}

.el-footer {
  background-color: #b3c0d1;
  color: #333;
  text-align: center;
  line-height: 60px;
}

.el-aside {
  background-color: #d3dce6;
  color: #333;
  text-align: center;
  line-height: 200px;
}

.el-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
  line-height: 160px;
}
  
  .el-aside {
    color: #333;
  }
</style>
